package com.sinocare.project.dict.service.serviceImpl;

import com.sinocare.project.common.domin.SccMedicalResult;
import com.sinocare.project.common.domin.SccPatient;
import com.sinocare.project.common.domin.sccDrugstore;
import com.sinocare.project.dict.dao.BaseMapper;
import com.sinocare.project.dict.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class BaseServiceImpl implements BaseService {
    @Autowired
    private BaseMapper mapper;

    @Override
    public List<sccDrugstore> findBase() {
        return mapper.findBase();
    }

    @Override
    public List<SccPatient> selectHistory(SccPatient sccPatient) {
        return mapper.selectHistory(sccPatient);
    }

    @Override
    public int insertMapper(SccMedicalResult sccMedicalResult) {
        return mapper.insertMapper(sccMedicalResult);
    }


    @Override
    public List<Map<String,Object>> selectSccMe(Integer patientId) {
        return mapper.selectSccMe(patientId);
    }


}
